# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>

pkgname=python-designateclient
pkgver=5.2.0
_commit=bc39d23ff5ff45e7669cb4be9d2c28b9242cf9d9
pkgrel=2
pkgdesc="OpenStack DNS-as-a-Service - Client"
arch=('any')
url="https://docs.openstack.org/python-designateclient/latest/"
license=('Apache')
depends=('python-cliff' 'python-jsonschema' 'python-osc-lib' 'python-oslo-serialization'
         'python-oslo-utils' 'python-pbr' 'python-keystoneauth1' 'python-requests' 'python-six'
         'python-stevedore' 'python-debtcollector')
makedepends=('git')
checkdepends=('python-oslotest' 'python-requests-mock')
source=("git+https://github.com/openstack/python-designateclient.git#commit=$_commit")
sha512sums=('SKIP')

build() {
  cd python-designateclient
  python setup.py build
}

check() {
  cd python-designateclient
  stestr run
}

package() {
  cd python-designateclient
  python setup.py install --root="$pkgdir" --optimize=1
}
